#include<bits/stdc++.h>
using namespace std;
int a[100][100];
int main()
{
	int n,i,j;
	cin>>n;
	for(i=1;i<=n;i++)
	{
		for(j=1;j<=i;j++)
		{
			a[i][j]=a[i-1][j-1]+a[i-1][j];
			a[i][i]=1;
			cout<<a[i][j]<<" ";
		}
		cout<<endl;
	}
    return 0;
}
